﻿@model HomeCareLibrary.Models.UserDetailIDModel

<div class="col-lg-9 col-sm-9 right_part">

    <div class="personalization-page personalization-mainpage">
        <div class="flipbox-container box100">
            <div id="flipboxnew" class="flipboxnew"></div>
            <div id="flipbox" class="flipbox">
                <div class="title clearfix">
                    <h1>Personalization</h1>
                    <div class="top-btn-per clearfix">
                        <div id="back-button" class="back-button">
                            <a href="#">
                                <img id="btnBack" class="back-btn" alt="back-btn" src="@Url.Content("~/images/personalization-images/back-btn.png")">
                                 <img class="back-mob-btn" alt="back-mob-btn" src="images/mtt-images/back-mob-btn.png">
                            </a>
                        </div>
                        <div class="ques-button">
                            <a href="javascript:void(0);">
                                <img class="ques-bt" src="@Url.Content("~/images/personalization-images/ques-btn.png")" alt="ques-btn">
                                <img class="mobques-bt" src="@Url.Content("~/images/personalization-images/mobques-btn.png")" alt="ques-btn">
                            </a>
                        </div>
                    </div>
                </div>
                <div class="main-content">
                    <div class="personalization-content">
                        <div class="personalization-bg">
                            @*Form Start*@

                            @using (Html.BeginForm("UpdateAllPersonalization", "Personalization", FormMethod.Post, new { id = "UpdateAllPersonalizationForm" }))
                            {
                                
                                <div class="personalization-inn">
                                    <div data-ride="carousel" class="carousel slide" id="carousel-example-captions">
                                        <div class="carousel-indicators-fixed-m">
                                            <div class="carousel-indicators-top">
                                                <ol class="carousel-indicators">
                                                    <li id="carousel-example-captions1" class="active" data-slide-to="0" data-target="#carousel-example-captions"></li>
                                                    <li data-slide-to="1" data-target="#carousel-example-captions" class="carousel-example-hide"></li>
                                                    <li data-slide-to="2" data-target="#carousel-example-captions" class="carousel-example-hide"></li>
                                                    <li data-slide-to="3" data-target="#carousel-example-captions" class="carousel-example-hide"></li>
                                                    <li data-slide-to="4" data-target="#carousel-example-captions" class="carousel-example-hide"></li>
                                                    <li data-slide-to="5" data-target="#carousel-example-captions" class="carousel-example-hide"></li>
                                                    <li data-slide-to="6" data-target="#carousel-example-captions" class="carousel-example-hide"></li>

                                                </ol>
                                                <a data-slide="prev" id="prev" href="#carousel-example-captions" class="left carousel-control carousel-example-show1">
                                                    <!-- <img src="images/personalization-images/previous-btn.png" alt="previous-btn">-->
                                                </a><a data-slide="next" id="next" href="#carousel-example-captions" class="right carousel-control carousel-example-hide1">

                                                    <!--<img src="images/personalization-images/next-btn.png" alt="next-btn">-->
                                                </a>
                                                <a data-slide="finish" id="finish" style="display: none" href="#" class="finish carousel-control"></a>

                                                 @Html.HiddenFor(m => m.dwelling_type, new {@Id="userchange_dwelling_type" })
                                                 @Html.HiddenFor(m => m.home_name , new {@Id="userchange_home_name" })
                                                
                                                @* @Html.HiddenFor(m => m.featurestring , new {@Id="userchange_featurestring" })*@
                                                @Html.HiddenFor(m => m.featurestring) 
                                                @Html.Hidden("userchange_featurestring","")

                                                 @Html.HiddenFor(model => model.ps_country , new {@Id="userchange_ps_country" })
                                                 @Html.HiddenFor(model => model.ps_state_province , new {@Id="userchange_ps_state_province" })
                                                 @Html.HiddenFor(model => model.ps_goal_string , new {@Id="userchange_ps_goal_string" }) 

                                                 @Html.HiddenFor(m => m.ps_knowledge_level , new {@Id="userchange_ps_knowledge_level" })
                                                 @Html.HiddenFor(m => m.ps_priority , new {@Id="userchange_ps_priority" })


                                                @*@Html.HiddenFor(m => m.app_mo_alert_badge , new {@Id="userchange_app_mo_alert_badge" })
                                                @Html.HiddenFor(m => m.app_mo_alert_popup , new {@Id="userchange_app_mo_alert_popup" })*@
                                                @Html.HiddenFor(m => m.app_mo_alert_week , new {@Id="userchange_app_mo_alert_week" })
                                                @Html.HiddenFor(m => m.app_mo_alert_day , new {@Id="userchange_app_mo_alert_day" })
                                                @Html.HiddenFor(m => m.app_mo_alert_hour , new {@Id="userchange_app_mo_alert_hour" })
                                                @Html.HiddenFor(m => m.web_mo_alert_email , new {@Id="userchange_web_mo_alert_email" })
                                                <input type="hidden" id="userchange_web_mo_alert_email_checkbox" value="">



                                                 @Html.HiddenFor(m => m.dwelling_type)
                                                 @Html.HiddenFor(m => m.user_id)
                                                 @Html.HiddenFor(m => m.home_number)

                                                <input type="hidden" id="dwellingChanged" value="">


                                              
                                                  


                                            </div>
                                        </div>
                                        <div class="carousel-inner">
                                            <div class="item active">
                                                <div class="personalization-data Dwelling-part-data">

                                                    @{Html.RenderPartial("dwellingtype");}
                                                </div>
                                            </div>

                                            <div class="item">
                                                <div class="personalization-data home-features-data">
                                                </div>
                                            </div>
                                            <div class="item">
                                                <div class="personalization-data local-climate-data">
                                                </div>
                                            </div>

                                            <div class="item">

                                                <div class="personalization-data goal-data-per">
                                                </div>
                                            </div>

                                            <div class="item">
                                                <div class="personalization-data knowledge-data-outer">
                                                </div>
                                            </div>

                                            <div class="item">
                                                <div class="personalization-data Priority-data-o">
                                                </div>
                                            </div>
                                            <div class="item" id="divmon">
                                            </div>
                                              <input type="hidden" id="refreshed" value="no">
                                              @Html.Hidden("hdnChangeDwellingType", @Url.Action("ChangeDwellingType", "Personalization"))
                                              @Html.Hidden("hdngetStatesbyCountry", @Url.Action("getStatesbyCountry", "Personalization"))
                                              @Html.Hidden("hdnfeatureDetail", @Url.Action("featureDetail", "Personalization"))
                                              @Html.Hidden("hdnUpdatePriority", @Url.Action("UpdatePriority", "Personalization"))
                                              @Html.Hidden("hdnHomeFeaturesItems", @Url.Action("HomeFeatureItems", "Personalization"))
                                             @Html.Hidden("hdnUserID", @Model.user_id)
                                            
                                            
                               </div>
                                    </div>
                                </div>
@*Form End*@
                            }

                            <div id="hfAlert" aria-hidden="true" aria-labelledby="mySmallModalLabel" role="dialog" tabindex="-1" class="modal fade bs-modal-sm" style="display: none;">
                                            <div class="modal-dialog modal-sm">
                                                <div class="modal-content">

                                                   
                                                    <div class="modal-body">

                                                       You have changed your Dwelling Type, so you will need to re-check your Home Features.
                                                    </div>

                                                    <div class="modal-footer">
                                                        <button data-dismiss="modal" class="btn btn-default"  type="button">Ok</button>
                                                     </div>
                                                </div>
                                                <!-- /.modal-content -->
                                            </div>
                                            <!-- /.modal-dialog -->
                                        </div>
                        </div>
                    </div>
                </div>
            </div>



        </div>
    </div>
                    <div id="wait" style="display:none;width:100%;z-index: 999;height:100%;position:absolute;top:0; bottom:0;left:0; right:0;padding:2px;background-color: rgba(0, 0, 0, 0.4);">
                    <div style="width: 86px; margin: 27% auto 0px;"><img style="" src='@Url.Content("~/images/demo_wait.gif")'  /><br>Loading..</div></div>
</div>

@section script {


    @* @Scripts.Render("~/Scripts/BundledScriptsPersonalization")*@

    <script src="@Url.Content("~/js/carousel.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/js/jquery.icheck.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/js/personalization/PersonalizationMobile.js")" type="text/javascript"></script>
     <script src="@Url.Content("~/js/webview/personalizationmonthlyalerts.js")" type="text/javascript"></script>

    <script type="text/javascript">

        function isValidEmailAddress(emailAddress) {
            var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
            return pattern.test(emailAddress);
        }
       
    </script>

 
}